We don't want the gravity to affect any of our sprites yet.

  • From the section of the toolkit, drag Sprite Gravity off into your program.
  • Assign the command to ball by changing the name before .set_gravity_off() to ball.
  • From the , drag another Sprite Gravity off into your program. Assign it to net.
  • Click Run to test your program. Now our sprites don't fall.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)